package com.ylbh.modules.shoppingegg.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.egg.dto.ShoppingEggDTO;
import com.ylbh.common.pojo.egg.vo.UpgradeSettingVO;
import com.ylbh.modules.shoppingegg.entity.ShoppingEgg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 彩蛋管理列表
 * @author wjc
 * @date  2020-01-08
 */
@Mapper
@Repository
public interface ShoppingEggMapper {
    /**
     * 彩蛋管理列表
     * @param shoppingEggDTO
     * @param  page
     * @return
     */
    List<ShoppingEgg> selectGoodsEggList(@Param(value = "shoppingEggDTO") ShoppingEggDTO shoppingEggDTO, Page page);
    /**
     * 彩蛋升级信息
     * @return
     */
    List<UpgradeSettingVO> selectUpgradeInfo();
    /**
     * 彩蛋添加
     * @return
     */
    void insertUpgradeInfo(ShoppingEgg shoppingEgg);

    ShoppingEgg selectUpgradeById(String id);

    void updateUpgradeInfo(ShoppingEgg egg);

    void deleteEggById(@Param(value = "id") String id);

    void updataEggStateByIds(String batchValue, List<String> ids);

    void updataEggStateById(ShoppingEggDTO shoppingEggDTO);

    void updateJumpUrlLike(@Param(value = "id") String id);
}
